* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f5f5;
}


.socials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.socials a {
    position: relative;
    padding: 20px 40px;
    margin: 24px;
    overflow: hidden;
    font-size: 30px;
    color: white;
    border-radius: 25px;
}

.socials a:before {
    position: absolute;
    content: '';
    top: 0;
    left: -1px;
    width: 0;
    border-style: solid;
    border-width: 18px;
    border-radius: 0 0 18px 0;
    border-color: #f5f5f5 rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.5) #f5f5f5;
    transition: .5s ease;
}

.socials a:hover {
    transition-delay: .5s;
}

.socials a:hover:before {
    border-width: 0;
}

.socials a:nth-child(1) {
    background: #1877f2;
}

.socials a:nth-child(2) {
    background: #e44c89;
}

.socials a:nth-child(3) {
    background: #02b875;
}

.socials a:nth-child(4) {
    background: #ff5700;
}


